package com.controller;

import com.entity.StudentTable;
import com.server.IStudentTableService;
import com.util.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenhailong
 * @ClassName: ITTreeNodeController
 * @Description: 多数据源测试
 * @date 2021/12/20 19:17
 * @Version 1.0
 */
@RestController
@RequestMapping("/student")
@Api(tags = "学生请求类",value = "学生请求类")
public class StudentTableController {


    @Autowired
    private IStudentTableService service;

    @PostMapping("/save")
    @ApiOperation(value = "新增学生，生成ID")
    public Response add() {
        StudentTable node = new StudentTable();

        service.add(node);
        return Response.createSuccess("成功");
    }


}
